home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Freeware
/
First Page 2006 3.00
/
fp2006-final-3.00-setup.exe
/
{app}
/
Iscripts
/
Forms Misc
/
dictionary.izs
< prev
next >
Wrap
Text File
|
2005-09-28
|
4KB
|
156 lines
<!NOWIZARD>
<!TITLE>Dictionary
<!/TITLE>
<!DESCRIPTION>This script tells you the definition of a word that you type, a quick dictionary! also has thesaurus!<!/DESCRIPTION>
<!CATEGORY>Forms<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL DICTIONARY:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function jump2form() {
document.dict_form.term.select();
document.dict_form.term.focus();
}
function isblank(s)
{
for(var i = 0; i < s.length; i++) {
var c = s.charAt(i);
if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
}
return true;
}
function formcheck() {
var d = document.dict_form.db[1].checked;
var e = document.dict_form.term.value;
if ((e == null) || (e == "") || isblank(e)) {
alert("Please enter a word to look up.");
jump2form();
}
else if (d == 1) {
location.href = ("http://www.thesaurus.com/cgi-bin/search?config=roget&words=" + escape(e));
}
else {
location.href= ("http://www.dictionary.com/cgi-bin/dict.pl?term=" + escape(e));
}
return false;
}
function ahdpop() {
win=window.open("http://www.dictionary.com/help/ahd3key.html",'AHDKey','width=500,height=330,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes');
return false;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<FORM NAME="dict_form" METHOD="GET" ACTION="/cgi-bin/dict.pl" onsubmit="return formcheck();">
<center>
<h2>Look up:</h2>
<INPUT TYPE="text" NAME="term" SIZE=17 MAXLENGTH=48 VALUE="" style="font-size:11pt;">
<INPUT TYPE="submit" VALUE="OK" STYLE="font-size:11pt;">
<h3>Search:</h3>
<INPUT TYPE="RADIO" NAME="db" VALUE="*" CHECKED>Dictionary
<INPUT TYPE="RADIO" NAME="db" VALUE="roget">Thesaurus
</center>
</FORM>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL DICTIONARY:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function jump2form() {
document.dict_form.term.select();
document.dict_form.term.focus();
}
function isblank(s)
{
for(var i = 0; i < s.length; i++) {
var c = s.charAt(i);
if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
}
return true;
}
function formcheck() {
var d = document.dict_form.db[1].checked;
var e = document.dict_form.term.value;
if ((e == null) || (e == "") || isblank(e)) {
alert("Please enter a word to look up.");
jump2form();
}
else if (d == 1) {
location.href = ("http://www.thesaurus.com/cgi-bin/search?config=roget&words=" + escape(e));
}
else {
location.href= ("http://www.dictionary.com/cgi-bin/dict.pl?term=" + escape(e));
}
return false;
}
function ahdpop() {
win=window.open("http://www.dictionary.com/help/ahd3key.html",'AHDKey','width=500,height=330,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes');
return false;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<FORM NAME="dict_form" METHOD="GET" ACTION="/cgi-bin/dict.pl" onsubmit="return formcheck();">
<center>
<h2>Look up:</h2>
<INPUT TYPE="text" NAME="term" SIZE=17 MAXLENGTH=48 VALUE="" style="font-size:11pt;">
<INPUT TYPE="submit" VALUE="OK" STYLE="font-size:11pt;">
<h3>Search:</h3>
<INPUT TYPE="RADIO" NAME="db" VALUE="*" CHECKED>Dictionary
<INPUT TYPE="RADIO" NAME="db" VALUE="roget">Thesaurus
</center>
</FORM>
<!-- END OF SCRIPT -->
<!/PREVIEW>
<!RELATED>NONE<!/RELATED>